package com.exampleyyy.demoyyy.JieKouService;

import com.baomidou.mybatisplus.extension.service.IService;
import com.exampleyyy.demoyyy.ShiTiYYY.AddressBook;


import java.util.List;

public interface AddressBookServiceJieKou extends IService<AddressBook> {
    /**
     * 查询当前用户所有地址
     */
    public List<AddressBook> listByUserId(Long userId);

    /**
     * 查询当前用户默认地址
     */
    public AddressBook getDefaultByUserId(Long userId);

    public void setDefaultAddress(Long id, Long userId);
}